package com.zhuoyue.biz.core.api.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhuoyue.biz.core.api.domain.base.BaseDoClass;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName: TblZigbeeDeviceLinkageRelation
 * @Description: 极享设备联动配置
 * @author wjming
 * @Date 2021-07-08 13:31
 */
@Data
@TableName(value = "tbl_zigbee_device_linkage_relation")
public class TblZigbeeDeviceLinkageRelation extends BaseDoClass implements Serializable {


    /**
     * 网关ID
     */
    @TableField(value = "gateway_id")
    private String gatewayId;

    /**
     * 联动开始设备的MAC地址
     */
    @TableField(value = "start_device_mac")
    private String startDeviceMac;

    /**
     * 联动开始设备的MAC地址
     */
    @TableField(value = "start_device_id")
    private String startDeviceId;

    /**
     * 联动开始设备的MAC地址
     */
    @TableField(value = "end_id")
    private String endId;

    /**
     * 开始设备的设备的OD
     */
    @TableField(value = "start_od_index")
    private String startOdIndex;

    /**
     * 开始设备的设备类型
     */
    @TableField(value = "start_device_type")
    private String startDeviceType;

    /**
     * 开始设备的产品类型
     */
    @TableField(value = "start_product_type")
    private String startProductType;

    /**
     * 开始设备的开关状态
     */
    @TableField(value = "start_switch_state")
    private String startSwitchState;

    /**
     * 联动结束设备的MAC地址
     */
    @TableField(value = "end_device_mac")
    private String endDeviceMac;

    /**
     * 结束设备的设备类型
     */
    @TableField(value = "end_device_type")
    private String endDeviceType;

    /**
     * 设备设备的产品类型
     */
    @TableField(value = "end_product_type")
    private String endProductType;

    /**
     * 结束设备的OD
     */
    @TableField(value = "end_od_index")
    private String endOdIndex;

    /**
     * 结束设备的群组ID
     */
    @TableField(value = "end_group_id")
    private String endGroupId;

    /**
     * 结束设备的类型(zigbeeDevice,group)
     */
    @TableField(value = "end_type")
    private String endType;

    /**
     * 自定义字段jsonString
     */
    @TableField(value = "actions")
    private String actions;

    /**
     * 联动模式
     */
    @TableField(value = "mode")
    private String mode;


    public static final String COL_ID = "id";

    public static final String COL_GATEWAY_ID = "gateway_id";

    public static final String COL_START_DEVICE_MAC = "start_device_mac";

    public static final String COL_START_OD_INDEX = "start_od_index";

    public static final String COL_START_DEVICE_TYPE = "start_device_type";

    public static final String COL_START_PRODUCT_TYPE = "start_product_type";

    public static final String COL_END_DEVICE_MAC = "end_device_mac";

    public static final String COL_END_DEVICE_TYPE = "end_device_type";

    public static final String COL_END_PRODUCT_TYPE = "end_product_type";

    public static final String COL_END_OD_INDEX = "end_od_index";

    public static final String COL_END_GROUP_ID = "end_group_id";

    public static final String COL_END_TYPE = "end_type";

    public static final String COL_ACTIONS = "actions";

    public static final String COL_MODE = "mode";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}
